package com.javaee.weixin.entity;

import java.util.HashMap;
import java.util.Map;


/**
 * 单例模式类型，用来缓存access_token和jsapi_ticket
 */
public class Singleton {

	private Map<String,Object> map=new HashMap<String,Object>();
	private static Singleton singleton;
	
	private Singleton() {
		
	}
	
	public static Singleton getInstance(){
		if(singleton==null){
			singleton=new Singleton();
		}
		return singleton;
	}

	public Map<String, Object> getMap() {
		return map;
	}

	public void setMap(Map<String, Object> map) {
		this.map = map;
	}

	
	
}
